package com.example.wanandroid.result;

import lombok.Getter;

/**
 * @Desc 通用状态信息
 * @Author 小强
 * @Date 2019/10/17 14:36
 */
@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    ERROR(-1, "错误");

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
